package collectionDame;

import java.util.ArrayList;
import java.util.List;

public class test2 {
    public static void main(String[] args) {
        ArrayList<Studet> list = new ArrayList<Studet>();
        Studet studet = new Studet("马小跳","11");
        Studet studet1 = new Studet("图图","12");
        Studet studet2 = new Studet("小桃","11");
        list.add(studet);
        list.add(studet1);
        list.add(studet2);
        System.out.println(list);

        list.remove(0);
        System.out.println(list);

        Studet studet3=new Studet("鲁智深","33");
        list.set(0,studet3);
        System.out.println(list);

        Studet studet4 = list.get(1);
        System.out.println(studet4);
    }
}
